/**
 * 
 */
package fr.utbm.gi.vi51.slizers.pw.environment;

import fr.utbm.gi.vi51.slizers.framework.environment.EnvironmentEvent;

/**
 * Implementation of a map change event occurring in the world.
 *
 * @author Tarik Belabbas
 *
 */
public class WorldMapEvent extends EnvironmentEvent
{
	/**
	 * Version number associated to the serializable class.
	 */
	private static final long	serialVersionUID	= 5627348054155583734L;

	/**
	 * Parameterized constructor with a source object.
	 * 
	 * @param _source the object on which the event initially occurred
	 */
	public WorldMapEvent( World _source )
	{
		super( _source );
	}
	
	/**
	 * Returns the map provider, the world.
	 * 
	 * @return the map provider
	 */
	public WorldMapProvider getMapProvider()
	{
		return ( WorldMapProvider ) getSource();
	}
}
